package cc.yugu.yhdw.webserver.persistence.basic;
import cc.yugu.yhdw.common.domain.basic.DictItem;
import cc.yugu.yhdw.common.persistence.MasterMapper;

import java.util.List;
/**
 * 字典信息映射
 *
 * @Date:Created in 2018/6/28 14:20
 * @Author:
 * @Modified By: zjn 2018/6/28 14:20
 */
public interface DictItemMapper extends MasterMapper {
    /**
    * 根据主键id查询表bas_dict_item
    *
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.basic.DictItem
    * @Author By: zjn 2018/6/28  14:37
    */
    public DictItem find(int id);
    /**
    * 分页查询， 根据运营商id及不同字段一起查询
    *
    * @Param: [entity]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.basic.DictItem>
    * @Author By: zjn 2018/6/28  14:38
    */
    public List<DictItem> findPageResult(DictItem entity);
    /**
    * 根据运营商id和其他不同字段一起查询所对应的行数
    *
    * @Param: [entity]
    * @Return: int
    * @Author By: zjn 2018/6/28  14:40
    */
    public int findPageCount(DictItem entity);
    /**
    * 往指定字段插入数据
    *
    * @Param: [entity]
    * @Return: int
    * @Author By: zjn 2018/6/28  14:41
    */
    public int insert(DictItem entity);
    /**
    * 根据主键id更新数据
    *
    * @Param: [entity]
    * @Return: int
    * @Author By: zjn 2018/6/28  14:41
    */
    public int update(DictItem entity);
    /**
    * 根据主键id删除数据
    *
    * @Param: [id]
    * @Return: int
    * @Author By: zjn 2018/6/28  14:42
    */
    public int delete(int id);
}
